package com.tbvtc.agriculturalcreditchainserver2025.dto.farmer;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class registerCropDto {
    @Schema(description = "农户id")
    private Integer userId;
    @Schema(description = "农产品名称")
    private String cropName;
    @Schema(description = "价格")
    private BigDecimal price;
    @Schema(description = "图片")
    private String cropImage;
    @Schema(description = "农作物种类")
    private String cropCategory;
    @Schema(description = "预计产量")
    private String expectedYield;
    @Schema(description = "土地id")
    private String landId;
    @Schema(description = "是否能预约")
    private Integer isPreorder;
    @Schema(description="创建时间",deprecated = true) //
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}
